export default {
    namespaced: true,
    state: {
        logininfo: {
            username: '',
            role: ''
        }
    },
    mutations: {
        setlogin(state, payload) {
            console.log(payload, '邓旒数据');

            state.logininfo = payload
        },
        outlogin(state, payload) {
            state.logininfo = {
                username: '',
                role: ''
            }
        }
    }
}